From b2f72ca9dcb075c33e2591067bd6b029e4ebc4e1 Mon Sep 17 00:00:00 2001 From: Thomas Koutcher Date: Fri, 20 Jun 2025 22:10:58 +0200 Subject: [PATCH] Fix compilation in C90 mode (#284) --- utf8proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utf8proc.c b/utf8proc.c index 3461994..a7aff86 100644 --- a/utf8proc.c +++ b/utf8proc.c @@ -688,8 +688,9 @@ UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_normalize_utf32(utf8proc_int32_t *b int len = starter_property->comb_length; utf8proc_int32_t max_second = utf8proc_combinations_second[idx + len - 1]; if (current_char <= max_second) { + int off; // TODO: binary search? arithmetic search? - for (int off = 0; off < len; ++off) { + for (off = 0; off < len; ++off) { utf8proc_int32_t second = utf8proc_combinations_second[idx + off]; if (current_char < second) { /* not found */ -- 2.30.2